﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityMultiPlayerGameServer.Manager;

namespace UnityMultiPlayerGameServer
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Server server = new Server();
            Server_UDP server_udp = new Server_UDP();

            server.Start("192.168.0.118", 8080, 100);
            server_udp.Start(6666);
            ServerManager.Instance.SetTCPUDP(server, server_udp);

            DataBaseController.Instance.start();

            
            while (true)
            {
                string input = Console.ReadLine();
                if (input != String.Empty && input == "\\q" || input == "\\Q") break;
            }
        }
    }
}
